PageMaker WebSucker by Mitch Cohen, mcohen@media.iii.net.
Version 2.7, June 7, 1995
The WebSucker is freely distributable. I post updates to my web page, info-mac, the UMich archives, and AOL. Feel free to copy this anywhere (including floppy/CD-ROMs if I get a copy), as long as the copies you post are not modified at all. If you got this anywhere except my web page, be sure to check my page (http://www.iii.net/users/mcohen.html) to be sure you have the most recent version. I also post application notes (Bugs? Never!) at that location as well.
What the heck is this???
This hypercard stack takes stories of a Pagemaker document longer than 50 characters, exports them to valid HTML files, and creates an HTML file to link them all together. To run this, you need Pagemaker 5.0 and Hypercard 2.2 (unless you got this as a standalone app). There are some xcmds from the Dartmouth and Rinaldi stacks in here; I'd give them credit but I don't remember which ones at the moment. You really do need Hypercard 2.2 or higher to run this stack if you didn't get the standalone - you will get errors if you're using Hypercard 2.1!
To use this thing:
• Click "Customize" to set your publication name, graphic, and email address
• Open the Pagemaker document, then open this stack (or switch back to it)
• Click "Init" then "Get List", "Process 1", "Process 2" and "Process 3." Be advised that Process 2 can take a WHILE (several minutes).
• Type the correct issue date (in both short and long fields!). You can actually type anything in these fields; the short field is used in the TOC filename, and the long fields are atop the TOC that the user sees.
• Click to select the folder output path (click on the old path)
• If you want to save a story, type the story's name, the TOC name, choose the category, optionally type a graphic file's name to be placed atop the story (be sure to erase any name if you don't want any graphic!), and click "Save." Else click "Don't Save"
• After going through all the stories, click "Save HTML" to save the main menu HTML file.
One warning (of many): Pagemaker is pretty herrendous with how it deals with apple events. My program "clicks" in pagemaker at the exact midpoint of the four corners of a story. If there's something else there - like a photo - you'll get an error. Sorry!
This is copyright 1995 by Mitch Cohen. As if that were worth anything. I absolutely guarantee nothing whatsoever. This might work, it might cause WW III. PLEASE email me if you use this thing - just for the sake of curiousity. This won't damage your Pagemaker file (although PM will prompt you to save when you quit; you don't have to). This WILL overwrite the exported files if you export files of the same name.
This really is a hack. The programming is an absolute mess, really to the point of embarrassment. My spelling is also probably atrocious. I've written this for the needs of the Clark University Scarlet (http://www.clarku.edu/, and somewhere within that); I suppose I can make changes for the general public if you ask really nice.
And have a nice day!
Mitchell S. Cohen
mcohen@media.iii.net
http://www.iii.net/users/mcohen.html
***Version 2.6 modifications***
Pagemaker no longer has to be named exactly "Aldus Pagemaker 5.0". So, you new Adobe Pagemaker owners can be happy. I call the application based on its Creator code, so this will probably break when Adobe issues a major Pagemaker upgrade.
You no longer need to enter a name in the table of contents field. If you don't touch the default name ("Optionally enter TOC name here"), the WebSucker will use the same name you type in the headline field.
***Version 2.7 modifications***
Optionally convert bold/italic/underline'd text!!! It works well, but it's *slow*. That's why I left that option on the main screen - turn it on and off as needed for each story if you wish. If I come up with a faster method (anyone willing to write me a XFCN? :-) ) I'll also add font sizes.
Fixed a little bug in the HTML code that put <p> marks around the HTML title.
Version history:
1.0 sucked files to gopher format, but didn't work too well.
2.0 sucked to web files, and added almost all the options you'll see.
2.0.1 fixed a few cosmetic issues in the HTML files.
2.1 added the graphic options, customization options, and is the first version released outside of Clark University.
2.2 added the option to change the six section names.
2.3 was internal, never left my desk.
2.5 removed the requirement to have Applescript and the Progress Bar! Yeay!
2.6 fixed a problem with "Adobe" vs "Adlus" Pagemaker
2.7 added support for bold/italic/underlines in stories